<extend name="Public/base" />

<block name="content">
<div id="content">
	<div id="content-header">
		<div id="breadcrumb">
			<a href="{:U('Index/index')}" title="首页" class="tip-bottom"><i
				class="icon-home"></i> 首页</a> <a href="{:U('index')}" >活动管理</a> <a href="{:U('config')}" class="current">{$meta_title}</a>
		</div>
	</div>
	<div class="container-fluid">
		<br>
		<button id='export' class="btn btn-info" onclick="location.href='{:U('configAdd?activity_id='.I('activity_id'))}'">新 增</button>
		<button class="btn btn-success ajax-get confirm" url="{:U('createForm?activity_id='.I('activity_id'))}" >创建表单</button>
<!-- 		<button class="btn btn-warning" onclick="location.href='{:U('configSort')}'">排 序</button> -->
		<div class="row-fluid">
			<div class="span12">
				<div class="widget-box">
					<div class="widget-content ">
						<form id="export-form" method="post" action="">
							<table id="config_table" class="table table-striped with-check">
								<thead>
									<tr>
										<!-- <th width="5%"><input type="checkbox" id="title-table-checkbox"
											name="title-table-checkbox" /></th> -->
										<th width="5%" class="taskStatus">ID</th>
										<th width="30%">名称</th>
										<th width="30%">标题</th>
										<th width="10%" class="taskStatus">活动</th>
										<th width="10%" class="taskStatus">类型</th>
										<th width="15%" class="taskStatus">操作</th>
									</tr>
								</thead>
								<tbody>
									<notempty name="_list">
										<volist name="_list" id="config">
											<tr>
											<!-- 	<td class="line_border"><input type="checkbox" name="tables[]"
													value="{$config.activity_config_id}" /></td> -->
												<td class="taskStatus">{$config.activity_config_id}</td>
												<td><span title="{$config.value}">{$config.name}</span></td>
												<td>{$config.title}</td>
												<td class="taskStatus">{$config.activity_name}</td>
												<td class="taskStatus">{$config.type|get_config_type}</td>
												<td class="taskStatus">
													<a title="编辑" href="{:U('configEdit?activity_config_id='.$config['activity_config_id'])}"><i class="icon-pencil"></i> 编辑</a>
													<a href="{:U('configSetStatus?model=activityConfig&ids='.$config['activity_config_id'].'&status='.abs(1-$config['status']))}" class="ajax-get">
															<switch name="config.status">
																<case value="0"> <i class="icon-unlock"></i> 启用  </case>
																<case value="1"> <i class="icon-lock"></i> 禁用 </case>
																<default/> default
															</switch>
														</a>
													<a class="ajax-get confirm" title="删除" href="{:U('configSetStatus?model=activityConfig&ids='.$config['activity_config_id'].'&status=-1')}"><i class="icon-remove"></i> 删除</a>
												</td>
											</tr>
										</volist>
									<else/>
											<tr>
												<td colspan="6" class="taskStatus"> Oh~亲爱滴,暂时还没有内容! </td>
											</tr>
									</notempty>
								</tbody>
							</table>
							<div class="dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_full_numbers" id="DataTables_Table_0_paginate">
								{$_page}
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
highlight_subnav("{:U('index')}");
</script>
</block>
